<?php

namespace app\system\model\finance;

use app\system\model\Admin;
use app\system\model\customer\OrderAgent;
use think\Model;


class Commission extends Model {

    public $name = 'customer_order';

    public function admin(){
        return $this->hasOne(Admin::class, 'id', 'admin_id');
    }

    public function agent(){
        return $this->belongsTo(OrderAgent::class, 'agent_id', 'id');
    }

}


